package com.youdianstar.app.entity

/**
 * File: PaymentReq
 * Author: 82149 Create: 2021/11/26
 * Changes (from 2021/11/26)
 * --------------------------------------------------
 * description: 支付请求
 * ---------------------------------------------------
 *
 */
data class PaymentReq(
    //支付方式类型 0：已绑定卡支付，1：输卡号支付 2：亲情圈支付 3：Apple 4:google 5:paypal 6:zalopay 7:momo
    val payType: Int,
    //流水类型：1-租借 3-会员 5-押金 7-报失 11-优惠券 13-购买 15-置换;可用值:1,3,5,7
    val type: Int,
    //支付渠道： cloud、webpay、stripe、onepay、zalopay、momo
    val paymentChannel :String = "stripe",
    //订单号，type=1或7的时候必传
    val orderNo: String? = null,

    //优惠券id
    val couponId: String? = null,
    //机柜SNO
    val cabinetNo: String? = null,

    //卡支付 卡信息
    val bankcardInfo:CardBindReq? =null,
    //卡支付token
    val cardToken: String? = null,
    //绑定卡id
    val bankcardId:Int?=null,
    //绑定卡客户id, payType=0时必传
    val customerId: String? = null,
    //StripeId: Google/Apple支付专用 (旧)
    val paymentMethod: String? = null,
    val paymentTokenObject:String? = null,
    //用户优惠券id -支付使用
    val userCouponId: Int?=null,
    
    // ZaloPay相关字段
    val zalopayTransToken: String? = null,
    val zalopayAppId: String? = null,
    val zalopayCallbackUrl: String? = null,
    
    // MoMo相关字段
    val momoRequestId: String? = null,
    val momoOrderId: String? = null,
    val momoCallbackUrl: String? = null
)